package ru.paswd.marketprice.data.repositories

import android.content.Context
import ru.paswd.marketprice.api.dto.PriceWithShop
import ru.paswd.marketprice.listener.OnProcessListener
import java.util.*

object PricesRepository : Repository() {

    fun requestAll(context: Context, productId: UUID, radiusMeters: Int?,
                   lat: Double, lng: Double, sortByPrice: Boolean,
                   listener: OnProcessListener<List<PriceWithShop>>) {
        super.request(context, listener) { api ->
            api.getPriceList(productId, radiusMeters, lat, lng, sortByPrice)
        }
    }
}